class CooperateModel {
  int? errcode;
  String? errmsg;
  List<CooperateItemModel>? data;
  String? message;

  CooperateModel({this.errcode, this.errmsg, this.data, this.message});

  CooperateModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    if (json['data'] != null) {
      data = <CooperateItemModel>[];
      json['data'].forEach((v) {
        data!.add(new CooperateItemModel.fromJson(v));
      });
    }
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    return data;
  }
}

class CooperateItemModel {
  int? id;
  int? userId;
  String? name;
  String? department;
  String? image128;
  String? jobName;

  CooperateItemModel(
      {this.id,
        this.userId,
        this.name,
        this.department,
        this.image128,
        this.jobName});

  CooperateItemModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userId = json['user_id'];
    name = json['name'];
    department = json['department'];
    image128 = json['image_128'];
    jobName = json['job_name'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['user_id'] = this.userId;
    data['name'] = this.name;
    data['department'] = this.department;
    data['image_128'] = this.image128;
    data['job_name'] = this.jobName;
    return data;
  }
}
